package com.ponhu.ea2.dto;

import com.ponhu.ea2.support.validation.annotions.ValidateExpression;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Wang
 * @date 2021/10/22 3:37 下午
 */
@ApiModel("云商货品属性对象")
@Data
@ValidateExpression(expression = "T(org.apache.commons.lang3.StringUtils).isNotEmpty(propertyName) and T(org.apache.commons.lang3.StringUtils).isNotEmpty(propertyValue)",
        message = "货品属性信息-属性名称、属性值不能为空")
public class CloudTradeInventoryProperty implements Serializable {

    private static final long serialVersionUID = -1119440837044209609L;

    @ApiModelProperty("属性名称")
    private String propertyName;
    @ApiModelProperty("属性值")
    private String propertyValue;
}
